﻿#if UNITY_EDITOR

using UnityEngine;

namespace AI.Graph.Editor {


    [ExcludeFromObjectFactory]
    public abstract class GraphEvent : ScriptableObject {

        protected AIGraph graph {
            get { return EventSystem.current.graph; }
        }

        protected NodeCanvas canvas {
            get { return EventSystem.current.graph.canvas; }
        }

        internal int order;

        public virtual void OnInitialize () { }

        public abstract void OnProcess (Event e);

    }


}
#endif